﻿using System;

namespace BooleanAlgebra
{
    class Program
    {
        static void Main(string[] args)
        {
            bool b1 = true;
            bool b2 = false;

            Console.WriteLine("true && true = " + (true && true));
            Console.WriteLine("true && false = " + (true && false));
            Console.WriteLine("false && true = " + (false && true));
            Console.WriteLine("false && false = " + (false && false));

            Console.WriteLine("----------------------------------");

            Console.WriteLine("true || true = " + (true || true));
            Console.WriteLine("true || false = " + (true || false));
            Console.WriteLine("false || true = " + (false || true));
            Console.WriteLine("false || false = " + (false || false));

            Console.WriteLine("----------------------------------");

            Console.WriteLine("!true = " + !true);
            Console.WriteLine("!false = " + !false);

            // >, <, >=, <=, ==, !=
            int a = 1;
            int b = 2;
            bool gt = a > b;

            Console.Write("x = ");
            int x = int.Parse(Console.ReadLine());

            Console.Write("y = ");
            int y = int.Parse(Console.ReadLine());

            Console.WriteLine("x > y - " + (x > y));
            Console.WriteLine("x < y - " + (x < y));

            Console.WriteLine("x >= y - " + (x >= y)); // x > y || x == y
            Console.WriteLine("x <= y - " + (x <= y)); // x < y || x == y

            Console.WriteLine("x == y - " + (x == y));
            Console.WriteLine("x != y - " + (x != y));

            Console.ReadKey();
        }
    }
}
